package com.jerry.DTO;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
@Data
@Accessors(chain = true)
public class FileMeta {
    @NotEmpty(message = "文件大小不得为空")
    private Long fileSize;
    @NotBlank(message = "文件后缀不得为空")
    private String extension;
    @NotBlank(message = "存储桶名不得为空")
    private String bucketName;
    @NotBlank(message = "文件别名不得为空")
    private String nickName;
    @NotBlank(message = "文件类型不得为空")
    private String fileType;
    private String base64;
}
